<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex flex-wrap align-center justify-between benben-position-layout flex memberLevel_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center memberLevel_fd0_0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <image class='memberLevel_fd0_0_c0'  mode="aspectFit"  :src='STATIC_URL+"87.png"'></image>
</view>
<text class='memberLevel_fd0_1'  >会员中心</text>
    <view   class='flex flex-wrap align-center memberLevel_fd0_0'      >
        </view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout memberLevel_flex_1"    >
            <view   class='flex flex-direction flex-wrap align-stretch memberLevel_fd1_0'      >
            <view   class='flex flex-wrap align-center memberLevel_fd1_0_c0'      >
        <image class='memberLevel_fd1_0_c0_c0'  mode="aspectFit"  :src='dataDetails.avatar'></image>
    <view   class='flex flex-direction flex-wrap align-stretch flex-sub memberLevel_fd1_0_c0_c1'      >
        <text class='memberLevel_fd1_0_c0_c1_c0'  >{{dataDetails.nickname}}</text>
<image class='memberLevel_fd1_0_c0_c1_c1'  mode="aspectFit"  :src='dataMessage.icon'></image>
</view>
</view>
    <view   class='flex flex-direction flex-wrap align-stretch'      >
            <view   class='flex flex-wrap align-center'      >
        <text class='memberLevel_fd1_0_c1_c0_c0'  >距离下次升级还差</text>
<text class=' memberLevel_fd1_0_c1_c0_c1'   >
    <text class=' memberLevel_price1_fd1_0_c1_c0_c1' >{{ dataMessage.intro | frontPrice }}</text>
    <text class=' memberLevel_price1_fd1_0_c1_c0_c1' >{{ dataMessage.intro | laterPrice }}</text>
</text>
<text class='memberLevel_fd1_0_c1_c0_c0'  >元</text>
</view>
    <view   class='flex flex-wrap align-center memberLevel_fd1_0_c1_c1'      >
        <view class='flex benben-progress-bar memberLevel_fd1_0_c1_c1_c0'  >
    <view  class='benben-progress-bar-center memberLevel_progress1_fd1_0_c1_c1_c0' :style="{width: 50+'%'}"></view>
    <image  class='benben-progress-bar-image memberLevel_progress2_fd1_0_c1_c1_c0' mode='aspectFit'  :src='STATIC_URL+"90.png"' :style="{left: 50+'%'}"></image>
</view>
</view>
    <view   class='flex flex-wrap align-center'      >
        <text class='memberLevel_fd1_0_c1_c2_c0'  >{{dataMessage.intro}}</text>
<text class='memberLevel_fd1_0_c1_c2_c1'  >{{dataMessage.intro}}</text>
<text class='memberLevel_fd1_0_c1_c2_c0'  >{{dataMessage.intro}}</text>
<text class='memberLevel_fd1_0_c1_c2_c3'  >{{dataMessage.intro}}</text>
</view>
</view>
</view>
    <view   class='flex flex-direction flex-wrap align-stretch memberLevel_fd1_1'      >
        <text class='memberLevel_fd1_1_c0'  >等级规则及权益</text>
    <template v-for = '(item,key0) in dataList'>
    <view   class='flex flex-direction align-stretch memberLevel_fd1_1_c1'       :key='key0'>
        <text   >{{item.name}}</text>
<text   >{{item.content}}</text>
</view>
    </template>
    
</view>
</view>
        
<!---flex布局flex布局结束-->
    
    
        </view>
    </view>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        
        
        data(){
			return {"dataMessage":{"aid":"","name":"","levelid":"","empirical":"","icon":"","discount":"","content":"","total_consumption_money":"","intro":"","speed":""},"dataDetails":{"invite_code":"","address":"","address_code":"","hobby":"","tags":"","id":"","userlevel_id":"","mobile":"","real_name":"","avatar":"","account":"","email":"","birthday":"","gender":"","create_time":"","user_money":"","freeze_money":"","total_consumption_money":"","score":"","_mobile":"","coupon":"","collection_count":"","browse_count":"","total_money":"","certified":"","nickname":"","is_pay_password":"","follow_count":""},"dataList":[]};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            this.getMessageFunc()
this.getDetailFunc()
this.getListFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //用户管理-会员当前等级详情
                async getMessageFunc(){
                        //请求方法
    //数据验证
    
  let datadataMessage = await this.$api.get(global.apiUrls.post636de668c7eb0, {
    
  });
  
  if (datadataMessage.data.code != 1) {
    this.$message.info(datadataMessage.data.msg);
    return
  } 
  let infodataMessage = datadataMessage.data;
  this.dataMessage = infodataMessage.data
  
                },
                //用户管理-会员等级
                async getListFunc(){
                        //请求方法
    //数据验证
    
  let datadataList = await this.$api.get(global.apiUrls.post636dc24bbf63d, {
    sort_type:'desc'
  });
  
  if (datadataList.data.code != 1) {
    this.$message.info(datadataList.data.msg);
    return
  } 
  let infodataList = datadataList.data;
  this.dataList = infodataList.data
  
                },
                //获取会员详细信息
                async getDetailFunc(){
                        //请求方法
    //数据验证
    
  let datadataDetails = await this.$api.get(global.apiUrls.post5c78c4772da97, {
    
  });
  
  if (datadataDetails.data.code != 1) {
    this.$message.info(datadataDetails.data.msg);
    return
  } 
  let infodataDetails = datadataDetails.data;
  this.dataDetails = infodataDetails.data
  
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:url(image-path('88.png')) no-repeat ,transparent;background-size: 100% auto;
        }
    .memberLevel_flex_0{
        background:url(image-path('88.png')) no-repeat ,transparent;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .memberLevel_fd0_1{
        color:#fff;font-size:36rpx;font-weight:600;line-height:50rpx;
    }
    .memberLevel_fd0_0_c0{
        width:20rpx;height:36rpx;border-radius:0rpx 0rpx 0rpx 0rpx;margin:0rpx 0rpx 0rpx 32rpx;
    }
    .memberLevel_fd0_0{
        width:100rpx;height:88rpx;
    }
    .memberLevel_flex_1{
        padding:0rpx 24rpx 0rpx 24rpx;
    }
    .memberLevel_fd1_1_c1{
        margin:20rpx 0rpx 0rpx 0rpx;
    }
    .memberLevel_fd1_1_c0{
        color:#333333;font-size:32rpx;font-weight:500;line-height:45rpx;
    }
    .memberLevel_fd1_1{
        background:#FFFFFF;border-radius:16rpx 16rpx 16rpx 16rpx;width:702rpx;padding:32rpx 32rpx 32rpx 32rpx;margin:32rpx 0rpx 0rpx 0rpx;
    }
    .memberLevel_fd1_0_c1_c2_c3{
        color:#333333;font-size:24rpx;font-weight:400;line-height:33rpx;
    }
    .memberLevel_fd1_0_c1_c2_c1{
        color:#333333;font-size:24rpx;font-weight:400;line-height:33rpx;margin:0rpx 84rpx 0rpx 0rpx;
    }
    .memberLevel_fd1_0_c1_c2_c0{
        color:#333333;font-size:24rpx;font-weight:400;line-height:33rpx;margin:0rpx 85rpx 0rpx 0rpx;
    }
    .memberLevel_progress2_fd1_0_c1_c1_c0{
        width:26rpx;height:26rpx;
    }
    .memberLevel_progress1_fd1_0_c1_c1_c0{
        background:rgba(254, 233, 128, 1);border-radius:10rpx 10rpx 10rpx 10rpx;
    }
    .memberLevel_fd1_0_c1_c1_c0{
        width:630rpx;height:8rpx;border-radius:16rpx 16rpx 16rpx 16rpx;
    }
    .memberLevel_fd1_0_c1_c1{
        margin:0rpx 0rpx 20rpx 0rpx;
    }
    .memberLevel_price1_fd1_0_c1_c0_c1{
        font-size:20rpx;color:var(--benbenFontColor0);font-weight:400;
    }
    .memberLevel_fd1_0_c1_c0_c1{
        color:#ff5536;font-weight:600;font-size:20rpx;margin:-9rpx 0rpx 0rpx 0rpx;
    }
    .memberLevel_fd1_0_c1_c0_c0{
        color:#333333;font-size:20rpx;font-weight:400;line-height:28rpx;margin:0rpx 0rpx 10rpx 0rpx;
    }
    .memberLevel_fd1_0_c0_c1_c1{
        width:148rpx;height:40rpx;border-radius:0rpx 0rpx 0rpx 0rpx;
    }
    .memberLevel_fd1_0_c0_c1_c0{
        color:#000000;font-size:32rpx;font-weight:500;line-height:45rpx;margin:0rpx 0rpx 6rpx 0rpx;
    }
    .memberLevel_fd1_0_c0_c1{
        margin:0rpx 0rpx 0rpx 16rpx;
    }
    .memberLevel_fd1_0_c0_c0{
        width:88rpx;height:88rpx;border-radius:44rpx 44rpx 44rpx 44rpx;
    }
    .memberLevel_fd1_0_c0{
        margin:0rpx 0rpx 51rpx 0rpx;
    }
    .memberLevel_fd1_0{
        background:url(image-path('89.png')) no-repeat ,transparent;background-size:100% auto !important;padding:74rpx 0rpx 104rpx 51rpx;
    }
</style>